﻿<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
	<head>
		<title>单证系统</title>
		<style>
body {
	background: #EFF0F5;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
}

.dl_top {
	width: 100%;
	height: 58px;
	background: url(<%=path%>/images/top_bg.jpg);
}

.dl_top img {
	padding-left: 100px;
}

.dl_cont {
	width: 100%;
	z-index: -1;
	height: auto;
	background: url(<%=path%>/images/cont_bg.jpg) repeat-x top
}

.bottom_div {
	position: fixed;
	left: 0px;
	bottom: 0px;
	width: 100%;
	height: 142px;
	background: url(<%=path%>/images/bottom_bg.jpg)
}

.bottom_li1 {
	width: 100%;
	text-align: right;
	margin-top: 10px;
	height: 77px;
	list-style-type: none;
}

.bottom_li1 img {
	padding-right: 100px;
	margin: -1px;
}

.bottom_li2 {
	width: 100%;
	text-align: center;
	padding-top: 20px;
	line-height: 16px;
	list-style-type: none;
	font-size: 12px;
	_font-size: 14px;
	color: #ffffff;
}

.login_txt {
	float: left;
	width: 70px
}
</style>
		<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css">
		<!--[if IE 6]> 
<script src="<%=path%>/js/DD_belatedPNG_0.0.8a-min.js"></script> 
<script> 
DD_belatedPNG.fix('img'); 
</script> 
<![endif]-->
		<SCRIPT type="text/javascript">
	 if (window != top){
	 	top.location.href = location.href;
	 } 
	function fullscr() {
		var a = screen.width + 8;
		var b = screen.height - 22;
		window.moveTo(-4, -4);
		window.resizeTo(a, b);
		document.all('uidtxt').focus();
	}
	function Auto_keydown() {
		if (event.keyCode == 13) {
			if (event.srcElement.name == "yzmtxt") {
				login_confirm();
			} else {
				event.keyCode = 9;
			}
		}
	}
	function passwordPress(e){
		var val;  
		
	    if (!e)   
	    {   
	        e = window.event;   
	    }   
	  	if(!e){
	  	
	  	}
	    if (e.keyCode)   
	    {   
	        val = e.keyCode;   
	    }   
	    else if(e.which)    
	    {   
	        val = e.which;   
	    }   
		
	   	if(val==13){   
			login_confirm();
		}   
	}
	function login_confirm() {
		if (document.getElementById("uidtxt").value.replace(/^\s*/, "") == "") {
			document.getElementById("tsmsg").innerHTML = "用户名不能为空！";
			document.getElementById("uidtxt").focus();
			return false;
		}
		if (document.getElementById("pwdtxt").value.replace(/^\s*/, "") == "") {
			document.getElementById("tsmsg").innerHTML = "密码不能为空！";
			document.getElementById("pwdtxt").focus();
			return false;
		}
		document.getElementById("tsmsg").innerHTML = "";
		document.Form1.submit();
	}
	function init()
	{
        
    }
    function img()
    {
        var logoimg=document.getElementById("logoimg").value;
		var pic = document.getElementById("picture");
	    pic.src ="<%=path%>"+logoimg;
    }
    
    function nonuser(){
	 document.location.href="<%=path%>/nonuserrequest/init.action";
	}
	
</SCRIPT>

		<body onLoad="init();img();">
			<div class="dl_top">
				<img id="picture" />
			</div>
			<div class="dl_cont">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<input type="hidden" id="logoimg"
						value="<s:property value='logoConfig.value'/>" />
					<tr>

						<td width="50%">
							<table width="100%" height="59" border="0" align="center"
								cellpadding="0" cellspacing="0" style="padding-left: 10px">
								<tr>
									<td>
										&nbsp;
									</td>
									<td align="center">
										<img src="<%=path%>/images/login.jpg" width="82" height="81">
									</td>
								</tr>
								<tr>
									<td width="4%">
										&nbsp;
									</td>
									<td width="96%" height="38" align="center">
										<span class="login_txt_bt">登陆单证系统</span>
									</td>
								</tr>
								<tr>
									<td>
										&nbsp;
									</td>
									<td height="21" align="center">
										<table cellSpacing="0" cellPadding="0" width="100%" border="0"
											id="table211" height="328">
											<tr>
												<td width="100" align="middle" valign="top">
													<s:property value="msg" />
													<s:form action="login" namespace="/" method="post"
														theme="simple" id="Form1" name="Form1">
														<table cellSpacing="0" cellPadding="0" width="30%"
															border="0" id="table212">
															<tr>
																<td width="14%" height="38" colspan="2" align="left">
																	<span class="login_txt">用户名：</span>
																	<span> <input name="username" id="uidtxt" onkeypress="passwordPress(event)"> </span>
																</td>
															</tr>
															<tr>
																<td width="14%" height="50" colspan="2" align="left">
																	<span class="login_txt"> 密&nbsp;&nbsp;码：</span>
																	<span> <input name="password" type="password" id="pwdtxt" onKeyPress="passwordPress(event)"> </span>
																</td>
															</tr>
															<tr>
																<td align="left" style="padding:10px 0 0 60px;">
																	<span style="float:center"><img src="<%=path%>/images/login_dl1.jpg" width="105"
																		height="27" style="cursor: hand;"
																		onClick="login_confirm();" /></span>

																	<span style="float:center;padding-left:10px;"><img src="<%=path%>/images/niming.jpg" width="105"
																		height="27" style="cursor: hand;"
																		onClick="nonuser();" /></span>
																</td>
															</tr>
															<tr>
																<td height="20" colspan="2" align="left"
																	style="font-size: 12px; color: #bfeaff">
																	<DIV style="COLOR: red;" id="tsmsg"></DIV>
																</td>
															</tr>
														</table>
													</s:form>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
			<div class="bottom_div">
				<ul>
					<li class="bottom_li1">
						<img src="<%=path%>/images/login-wel.jpg">
					</li>
					<li class="bottom_li2">
						<span><s:property value="copyrightConfig.value" />
						</span>
					</li>
				</ul>
			</div>
		</body>
</html>
